package com.zerox.mapper;

import com.zerox.pojo.Supplier;
import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    List<Supplier> list(@Param("supContact") String supContact,@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);

    int count(@Param("supContact") String supContact);

    int delete(@Param("id") Integer id);

    Supplier selectById(@Param("id") Integer id);

    int add(Supplier supplier);

    int update(Supplier supplier);

    Supplier selectByCode(@Param("supCode") String supCode);
}
